package com.flurry.android;

import android.text.TextUtils;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

final class gc
{
  private static List<String> ip = Arrays.asList(new String[] { "requested", "filled", "unfilled", "rendered", "clicked", "videoStart", "videoCompleted", "videoProgressed", "sentToUrl", "adClosed", "adWillClose", "renderFailed", "requestAdComponents", "urlVerified", "capExhausted", "capNotExhausted" });
  private final Map<String, String> bj;
  private final String iq;
  private final boolean ir;
  private final long is;

  gc(DataInput paramDataInput)
    throws IOException
  {
    this.iq = paramDataInput.readUTF();
    this.ir = paramDataInput.readBoolean();
    this.is = paramDataInput.readLong();
    this.bj = new HashMap();
    int i = paramDataInput.readShort();
    for (int j = 0; j < i; j = (short)(j + 1))
      this.bj.put(paramDataInput.readUTF(), paramDataInput.readUTF());
  }

  gc(String paramString, boolean paramBoolean, long paramLong, Map<String, String> paramMap)
  {
    if (!ip.contains(paramString))
      cy.c("FlurryAgent", "AdEvent initialized with unrecognized type: " + paramString);
    this.iq = paramString;
    this.ir = paramBoolean;
    this.is = paramLong;
    if (paramMap == null)
    {
      this.bj = new HashMap();
      return;
    }
    this.bj = paramMap;
  }

  final void a(DataOutput paramDataOutput)
    throws IOException
  {
    paramDataOutput.writeUTF(this.iq);
    paramDataOutput.writeBoolean(this.ir);
    paramDataOutput.writeLong(this.is);
    paramDataOutput.writeShort(this.bj.size());
    Iterator localIterator = this.bj.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      paramDataOutput.writeUTF((String)localEntry.getKey());
      paramDataOutput.writeUTF((String)localEntry.getValue());
    }
  }

  final boolean bD()
  {
    return this.ir;
  }

  final long bh()
  {
    return this.is;
  }

  public final boolean equals(Object paramObject)
  {
    if (this == paramObject);
    gc localgc;
    do
    {
      return true;
      if (!(paramObject instanceof gc))
        return false;
      localgc = (gc)paramObject;
    }
    while ((TextUtils.equals(this.iq, localgc.iq)) && (this.ir == localgc.ir) && (this.is == localgc.is) && ((this.bj == localgc.bj) || ((this.bj != null) && (this.bj.equals(localgc.bj)))));
    return false;
  }

  final Map<String, String> getParams()
  {
    return this.bj;
  }

  final String getType()
  {
    return this.iq;
  }

  public final int hashCode()
  {
    int i = 17;
    if (this.iq != null)
      i = 0x11 | this.iq.hashCode();
    if (this.ir)
      i |= 1;
    int j = (int)(i | this.is);
    if (this.bj != null)
      j |= this.bj.hashCode();
    return j;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.gc
 * JD-Core Version:    0.6.2
 */